<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="./assets/element/index.css">
    <link rel="stylesheet" href="/css/register.css">
</head>
<body>
  <div id="app">
    <el-form :rules="registerRules" :model="registerFrom" ref="registerFrom" status-icon  label-width="100px" class="registerContainer">
      <h3 class="registerTitle">注册</h3>
      <el-form-item style="margin-left: 0" prop="account">
        <el-input v-model="registerFrom.account" placeholder="请输入账号" ></el-input>
      </el-form-item>
      <el-form-item prop="password">
        <el-input type="password" v-model="registerFrom.password" placeholder="密码"></el-input>
      </el-form-item>
      <el-form-item prop="repassword">
        <el-input type="password" v-model="registerFrom.repassword" placeholder="再次输入密码"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="register()">注册</el-button>
        <el-button @click="toLogin()">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</body>
  <script src="./assets/element/vue.js"></script>
  <script src="./assets/element/index.js"></script>
  <script src="assets/jquery/jquery-2.1.1.min.js"></script>
  <script src="/js/register.js"></script>
</html>